of

public static PaperSize of(float width, float height, PaperSize.Unit unit)

Creates a new PaperSize setting.

Parameters

width

the width of the paper

height

the height of the paper

unit

the width and height measurement unit

Throws

if width or height is negative


public static PaperSize of(float width, float height, PaperSize.Unit unit, String name)

Creates a new PaperSize setting.

Parameters

width

the width of the paper

height

the height of the paper

unit

the width and height measurement unit

name

the name of the paper size

Throws

if width or height is negative, or if name is empty or blank